package matrix;

/**
 * @Author Zhang Chao
 * @Date 2021/5/16 21:41
 * @Version 1.0
 */
public class Offer04 {

    public static void main(String[] args){
        int[][] a ={{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
        //n*m的数组 int[n][m];
        int n = a.length;
        int m = a[0].length;
        for(int i = 0 ; i<n ; i++){
            for (int j = 0; j <m ; j++) {
                System.out.print(a[i][j]+"   ");
            }
            System.out.print("\n");
        }
    }
}
